﻿using AutoMapper;
using BookList.BooklistManagement.Books.Dto;

namespace BookList.BooklistManagement.Books.Mapper
{
    public class BookMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap<Books, BooklistDto>();
            configuration.CreateMap<BooklistDto, Books>();//创建时
            configuration.CreateMap<Books, BookEditDto>();//更新时

        }
    }
}